<?php
/*
 * Created on Apr 26, 2012
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
 $conn = mysql_connect('localhost','root','vertrigo') or die('can not connect to server');
 mysql_select_db('iblog',$conn);
 
 $sql = "SELECT * FROM `boblog_links`";
 $query = mysql_query($sql);
 
 if (mysql_num_rows($query) == 0){
 	echo "no data found";
 }else{
 	while ($row = mysql_fetch_array($query)){
 		echo $row['linkid'].': '.$row['linkname'].'- '. $row['linkurl'].'<br/>';
 	}
 }
 
 mysql_close($conn);
?>
